//
//  WaterFlowLayout.h
//  day21waterFlowLayout
//
//  Created by lanou3g on 15/5/13.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol WaterFlowLayoutDelegate <NSObject>
//根据indexPath返回计算后的item的高度
-(CGFloat)heightForItemAtIndexPath:(NSIndexPath*)indexPath;

@end
@interface WaterFlowLayout : UICollectionViewLayout
@property(nonatomic,assign)NSInteger numberOfColumns;//设置瀑布流显示的列数
@property(nonatomic,assign)CGSize itemSize;//设置每一个item的大小
@property(nonatomic,assign)UIEdgeInsets sectionInsets;//设置内边距
@property(nonatomic,assign)CGFloat interitemSpacing;//列之间的距离
@property(nonatomic,assign)CGFloat lineSpacing;//行间距
@property(nonatomic,weak)id<WaterFlowLayoutDelegate>delegate;
@end
